<#macro user index>
<div id="one" class="col-md-2">
    <ul data-spy="affix" class="nav nav-pills nav-stacked">
        <li class="${(index==1)?string('active',' ')}">
            <a href="${basePath}/user/index.shtml">
                <i class="glyphicon glyphicon-chevron-right"></i>个人资料
            </a>
    <@shiro.hasAnyRoles name='admin'>
            <ul class="dropdown-menu" aria-labelledby="dLabel" style="margin-left: 160px; margin-top: -40px;">
                <li><a href="${basePath}/user/updateSelf.shtml">资料修改</a></li>
                <li><a href="${basePath}/user/updatePswd.shtml">密码修改</a></li>
            </ul>
    </@shiro.hasAnyRoles>
        </li>
    <@shiro.hasAnyRoles name='admin'>
        <li class="${(index==2)?string('active',' ')} dropdown">
            <a href="${basePath}/role/mypermission.shtml">
                <i class="glyphicon glyphicon-chevron-right"></i>我的权限
            </a>
        </li>
    </@shiro.hasAnyRoles>
    </ul>

</div>
</#macro>
<#macro member index>
    <@shiro.hasAnyRoles name='888888,100002'>
		<div  id="one" class="col-md-2">
            <ul data-spy="affix" class="nav nav-list nav-tabs nav-stacked bs-docs-sidenav dropdown affix" style="top: 100px; z-index: 100;">
                <li class="${(index==1)?string('active',' ')}">
                    <a href="${basePath}/member/list.shtml">
                        <i class="glyphicon glyphicon-chevron-right"></i>用户列表
                    </a>
                </li>
                <li class="${(index==2)?string('active',' ')} dropdown">
                    <a href="${basePath}/member/online.shtml">
                        <i class="glyphicon glyphicon-chevron-right"></i>在线用户
                    </a>
                </li>
            </ul>
        </div>
    </@shiro.hasAnyRoles>
</#macro>
<#macro role index>

<@shiro.hasAnyRoles name='admin'>
<div id="one" class="col-md-2">
    <ul data-spy="affix" class="nav nav-pills nav-stacked">
        <li class="${(index==0)?string('active',' ')}">
            <a href="${basePath}/user/index2?pageSize=3&pageNo=1">
                <i class="glyphicon glyphicon-chevron-right"></i>用户列表
            </a>
        </li>

        <li class="${(index==1)?string('active',' ')}">
            <a href="${basePath}/role/index?pageSize=3&pageNo=1">
                <i class="glyphicon glyphicon-chevron-right"></i>角色列表
            </a>
        </li>
        <#--<@shiro.hasPermission name='user:allotRole'>-->
        <li class="${(index==2)?string('active',' ')} dropdown">
            <a href="${basePath}/user/allotRoles/index?pageSize=3&pageNo=1">
                <i class="glyphicon glyphicon-chevron-right"></i>角色分配
            </a>
        </li>
        <#--</@shiro.hasPermission>-->
        <li class="${(index==3)?string('active',' ')} dropdown">
            <a href="${basePath}/permission/index">
                <i class="glyphicon glyphicon-chevron-right"></i>权限列表
            </a>
        </li>
        <#--<@shiro.hasPermission name='role:allotPermission'>-->
        <li class="${(index==4)?string('active',' ')} dropdown">
            <a href="${basePath}/role/allotPermissions/index">
                <i class="glyphicon glyphicon-chevron-right"></i>权限分配
            </a>
        </li>
        <#--</@shiro.hasPermission>-->
    </ul>

</div>
</@shiro.hasAnyRoles>
</#macro>


<#macro role index>
<div id="one" class="col-md-2">
    <ul data-spy="affix" class="nav nav-pills nav-stacked">
        <li class="${(index==5)?string('active',' ')}">
            <a href="${basePath}/busInfo/index?pageSize=10&pageNo=1">
                <i class="glyphicon glyphicon-chevron-right"></i>商户列表
            </a>
        </li>

    </ul>

</div>

</#macro>